package com.example.loginpilot_01.mapper;

import com.example.loginpilot_01.pojo.entity.NoticeReadLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

// 通知阅读日志Mapper接口
@Mapper
public interface NoticeReadLogMapper {

    // 记录阅读行为
    int insertReadLog(NoticeReadLog log);

    // 批量获取用户阅读状态
    List<NoticeReadLog> selectUserReadStatus(@Param("userId") Long userId,
                                             @Param("announcementIds") List<Long> announcementIds);
}
